using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint.WebPartPages;
using System.Web.UI;
using System.IO;
using ARF.Web.Interfaces;

namespace ARF.Web.Utility
{
    public class PageCleanup
    {
        public static void CleanHtml(StringBuilder response)
        {
            response.Replace(" __expr-val-dir=\"ltr\"", "");
            response.Replace("SCRIPT", "script");
            response.Replace(" defer>", " defer='defer'>");
            response.Replace(" LANGUAGE='", " type='text/");
            response.Replace("<script>", "<script type='text/JavaScript'>");
        }
    }
}
